package simbot.example.demo.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import simbot.example.demo.service.UserService;

@RestController
@RequestMapping({"/user"})
@CrossOrigin(origins = "*",maxAge = 3600)
public class UserController {

    @Autowired
    UserService userService;

    /*
    @GetMapping("/getUser")
    public JsonResult getUser(Batch batch,
                              @RequestParam(defaultValue = "1") int page,
                              @RequestParam(defaultValue = "10") int limit){

        logger.info("getUser:" + batch.toString());

        Page<Map> page1=new Page<>(page,limit);
        IPage<UserInfo> mapList=userService.getUser(batch,page1);

        return new JsonResult(ErrorCode.SUCCESS," ：查询成功",mapList);
    }*/

}
